<!--添加菜单-->
<div class="btn-group" role="group" aria-label="...">
				  <a href="{:U('Menu/add_menuindex',array('id'=>$data['id']))}"><button type="button" class="btn btn-primary">添加菜单</button></a>				  
</div><div class="btn-group" role="group" aria-label="...">
				  <a href="{:U('Menu/wx_menu')}"><button type="button" class="btn btn-primary">生成菜单</button></a>				  
</div>

<div id="data_page" class="in_page">
	<div class="panel panel-default">
</div>
      <table class="table table-bordered">
        <thead>
          <tr>
            <th><span class="glyphicon glyphicon-leaf"></span>菜单名</th>
            <th><span class="glyphicon glyphicon-fire"></span>菜单类型</th>
            <th><span class="glyphicon glyphicon-eye-open"></span>key/URL</th>
            <th><span class="glyphicon glyphicon-calendar"></span>操作</th>
          </tr>
        </thead>
        <tbody>
          <volist name="list" id="data">
          <tr>
            <td><font color="red">一级菜单:</font>{$data['one_name']}</td>
            <td><if condition="$data.one_type eq 'click'">点击后反应</if><if condition="$data.one_type eq 'view'">点击后跳转链接</if></td>
            <td><if condition="$data.one_key neq ''">{$data['one_key']}</if><if condition="$data.one_key eq ''">{$data['one_url']}</if></td>
            <td>
				<div class="btn-group" role="group" aria-label="...">
				  <a href="{:U('Menu/update_index',array('id'=>$data['id']))}"><button type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-ok"></span></button></a>
				  <a href="{:U('Menu/del_menu',array('id'=>$data['id']))}"  onclick="return confirm('是否确认删除？')"><button type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-trash"></span></button></a>
				</div>
  			</td>
          </tr>
       	   <volist name="data['list']" id="arr">
           <tr>
           <td><font color="blue">二级菜单:</font>{$arr['two_name']}</td>
           <td><if condition="$arr.two_type eq 'click'">点击后反应</if><if condition="$arr.two_type eq 'view'">点击后跳转链接</if></td>
           <td><if condition="$arr.two_key neq ''">{$arr.two_key}</if><if condition="$arr.two_key eq ''">{$arr.two_url}</if></td>
           <td>
          				<div class="btn-group" role="group" aria-label="...">
          				  <a href="{:U('Menu/update_index',array('id'=>$arr['id']))}"><button type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-ok"></span></button></a>
          				  <a href="{:U('Menu/del_menu',array('id'=>$arr['id']))}" onclick="return confirm('是否确认删除？')"><button type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-trash"></span></button></a>
          				</div>
            			</td>
                    </tr>       
          </volist>
         </volist>
        </tbody>
      </table> 
	  
	
</div>